
function printLine(map, lineNo, lineColor) {


var line_1_path = map_total_data["line_"+lineNo+"_path"];
var line_1_stop = map_total_data["line_"+lineNo+"_stop"];
var line_1_start = map_total_data["line_"+lineNo+"_start"];
var line_1_end = map_total_data["line_"+lineNo+"_end"];

var line_1_stop_maker = [];
var line_1_stop_cycle = [];
 for(var i in line_1_stop) {
    var item = line_1_stop[i];
    var stop_marker = new AMap.LabelMarker({
        name: item.name,
        position: [item.location[0], item.location[1]],
        text: {
            content: item.name,
            direction: 'left'
        }
    });
    var stop_marker_cycle =  new AMap.CircleMarker({
          center: [item.location[0], item.location[1]],
          radius:2.5,
          strokeColor:'rgb(134, 184, 28)',
          strokeWeight:1.5, 
          fillColor:'rgba(255,255,255,1)',
          fillOpacity:0.5,
        })
    line_1_stop_maker.push(stop_marker);
    line_1_stop_cycle.push(stop_marker_cycle);
 }
 map.add(line_1_stop_maker);
 map.add(line_1_stop_cycle);

    // 绘制轨迹
    var line_1_polyline = new AMap.Polyline({
        map: map,
        path: line_1_path,
        showDir:true,
        //strokeColor: 'rgb(134, 184, 28)',  //线颜色
        strokeColor: lineColor,  //线颜色
        // strokeOpacity: 1,     //线透明度
        strokeWeight: 5,      //线宽
  
        // strokeStyle: "solid"  //线样式
    });

  // 将 icon 传入 marker
  var  line_1_startMarker = new AMap.Marker({
      position: new AMap.LngLat(line_1_start[0],line_1_start[1]),
      icon: startIcon,
      offset: new AMap.Pixel(-13, -30)
  });

  

  // 将 icon 传入 marker
  var  line_1_endMarker = new AMap.Marker({
      position: new AMap.LngLat(line_1_end[0],line_1_end[1]),
      icon: endIcon,
      offset: new AMap.Pixel(-13, -30)
  });

// 将 markers 添加到地图
 map.add([    line_1_startMarker,  line_1_endMarker]);


}